home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mint110s / assert.h < prev    next >
C/C++ Source or Header  |  1993-08-16  |  421b  |  18 lines

  1. /*
  2. Copyright 1990,1991 Eric R. Smith. All rights reserved.
  3. */
  4.  
  5. #ifdef NDEBUG
  6. #define assert(expression)
  7. #else
  8. # ifdef __STDC__
  9. #define assert(expression) \
  10.     ((expression) ? (void)0 : FATAL("assert(`%s') failed at line %ld of %s.", \
  11.         #expression, (long)__LINE__, __FILE__))
  12. # else
  13. #define assert(expression) if(expression) FATAL("assert(%s) failed", \
  14.         "expression")
  15. # endif
  16.  
  17. #endif /* NDEBUG */
  18.